package cn.wp.ewallet.wallet.model.entity;

import cn.wp.common.core.dao.annotation.Column;
import cn.wp.common.core.dao.annotation.Table;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName AccountLogDo
 * @Author ruixule
 * @Description TODO
 * @Date 2020/1/7 16:47
 */

@Data
@Table(value = "Account_log", keys = {"LOG_ID"})
public class AccountLogDo {


    //     记录唯一标识
    @Column("LOG_ID")
    private String logId;
    //     账户唯一标识
    @Column("ACCOUNT_ID")
    private String accountId;
    @Column("BEGIN_MONEY_AMOUNT")
    private BigDecimal beginMoneyAmount;
    @Column("END_MONEY_AMOUNT")
    private BigDecimal endMoneyAmount;
    @Column("LOG_TIME")
    private Date logTime;
    //    引起账户变动原因  1000-转出  2000-其他账户转入  3000-直接充值  4000-兑换充入  5000-提币提出  6000-理财收益  9000-其他
    @Column("CHANGE_CAUSE")
    private String changeCause;
    //差额
    @Column("Balance_AMOUNT")
    private BigDecimal balanceAmount;

    /**
     * 构造方法 有参数构造
     * @param logId
     * @param accountId
     * @param beginMoneyAmount
     * @param endMoneyAmount
     * @param logTime
     * @param changeCause
     */
    public AccountLogDo(String logId, String accountId, BigDecimal beginMoneyAmount, BigDecimal endMoneyAmount, Date logTime, String changeCause,BigDecimal balanceAmount) {
        this.logId = logId;
        this.accountId = accountId;
        this.beginMoneyAmount = beginMoneyAmount;
        this.endMoneyAmount = endMoneyAmount;
        this.logTime = logTime;
        this.changeCause = changeCause;
        this.balanceAmount=balanceAmount;
    }



    /**
     * 构造方法 无参数构造，
     * 因为有参数构造会覆盖无参构造
     */
    public AccountLogDo(){

    }
}
